<!--
  ~ Copyright (c) 2018-2019.
  ~  This file is part of the moonpie production
  ~  (c) johnzhang <875010341@qq.com>
  ~  This source file is subject to the MIT license that is bundled
  ~  with this source code in the file LICENSE.
  -->

<!-- 侧边导航栏 -->
<div class="left-sidebar dis-flex">
    <!-- 一级菜单 -->
    {volist name="$menus" id="item"}
    <ul class="sidebar-nav">
        <li class="sidebar-nav-heading"></li>
        {assign name="top_menus" value="$item->getSubTree()" /}
        {volist name="top_menus" id="top_menu"}
        <li class="sidebar-nav-link">
            {if condition="$top_menu->getUrlObject()->hasLink()"}
            <a href="{$top_menu->getUrlObject()->getLink()}"
           {else /}
            <a href="javascript:void(0);"
           {/if}
               class="{if condition='$top_menu->isActiveTrail()'}active{/if}">
                {if condition="$top_menu->useSvgIcon() eq true"}
                <svg class="icon sidebar-nav-link-logo" aria-hidden="true">
                    <use xlink:href="#{$top_menu->getIcon()}"></use>
                </svg>
                {else /}
                <i class="iconfont sidebar-nav-link-logo {$top_menu->getIcon()}"></i>
                {/if}
                {$top_menu->getTitle()}
            </a>
        </li>
        {/volist}
    </ul>
    {/volist}
</div>